function deAttByAttsCtl(attId, fieldName, flowId, formName, pageType, index, isMapped, visualId, formCode) {
	var ajaxData;
	if (flowId) {
		ajaxData = {
			flowId: flowId,
			attachId: attId,
			pageType: pageType,
			fieldName: fieldName,
			isMapped: isMapped,
			visualId: visualId,
			formCode: formCode,
		}
	} else {
		ajaxData = {
			"attachId": attId
		}
	}

	ajaxPost('/flow/delAttachForAttsCtl', ajaxData).then((data) => {
		console.log('data', data);
		myMsg(data.msg);
		if (data.code == 200) {
			if (fieldName != null) {
				$(fo(fieldName + 'File' + index)).remove();
			}
			// 刷新附件列表
			reloadAttachment();
		}
	});
}

function delByAttsCtl(attId, fieldName, flowId, formName, pageType, index, isMapped, visualId, formCode) {
	myConfirm('提示', '您确定要删除么', function() { deAttByAttsCtl(attId, fieldName, flowId, formName, pageType, index, isMapped, visualId, formCode) });
}